<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->id,
);

	if(Yii::app()->user->name=="admin"){
	    $this->menu=array(
	    	array('label'=>'用户列表', 'url'=>array('admin')),
			array('label'=>'创建用户', 'url'=>array('create')),
	    );
	    $attributes=array('id','mobile','password','token','ip','mac',array('name'=>'uptime','value'=>round(($model->uptime) / 60)."分钟"),'comeing','lasttime');
    }else{
	     $this->menu=array(
			 array('label'=>'用户列表', 'url'=>array('list')), 
	     ); 
	     $attributes=array('mobile','ip','mac',array('name'=>'uptime','value'=>round(($model->uptime) / 60)."分钟"),'comeing','lasttime');
    } 
?>

<h1>显示</h1>

<div class="Action">
    <a href="<?php echo Yii::app()->request->urlReferrer; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/admin/jiantou.png" style=""></a>
</div>

<?php $this->widget('zii.widgets.CDetailView', array(
    'data'=>$model,
    'itemCssClass'=>array('oddtablscss', 'eventablecss'),
	'attributes'=>$attributes,
)); ?>
